<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title><?php echo isset($title_for_layout)?$title_for_layout:$this->l('Home'); ?> :: <?php echo $this->l('Medic Center'); ?></title>
        
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
         
        <link href="<?php echo base_url('webroot/css/bootstrap/bootstrap.min.css'); ?>" rel="stylesheet" />
        <link href="<?php echo base_url('webroot/css/bootstrap/bootstrap-responsive.min.css'); ?>" rel="stylesheet" />
        
        <link href="<?php echo base_url('webroot/css/css.css'); ?>" rel="stylesheet" />
        <link href="<?php echo base_url('webroot/css/font-awesome.min.css'); ?>" rel="stylesheet" />
        
        <link href="<?php echo base_url('webroot/css/jquery/jquery-ui-1.10.0.custom.min.css'); ?>" rel="stylesheet" />
        
        <link href="<?php echo base_url('webroot/css/msgGrowl.css'); ?>" rel="stylesheet" />
        <link href="<?php echo base_url('webroot/css/jquery/jquery.lightbox.css'); ?>" rel="stylesheet" />	
        <link href="<?php echo base_url('webroot/css/jquery/jquery.msgbox.css'); ?>" rel="stylesheet" />
        
        <link href="<?php echo base_url('webroot/css/custom.css'); ?>" rel="stylesheet" />
        <link href="<?php echo base_url('webroot/css/custom-responsive.css'); ?>" rel="stylesheet" />
        
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        
        <script type="text/javascript">var baseUrl = '<?php echo base_url(''); ?>';</script>

    </head>

<body>

    <nav class="navbar navbar-inverse" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only"><?php echo $this->l('Toggle navigation'); ?></span>
                    <i class="icon-cog"></i>
                </button>
                <a class="navbar-brand" href="<?php echo base_url(''); ?>"><?php echo $this->l('Medic Center'); ?></a>
            </div>
        
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse navbar-ex1-collapse">
            <ul class="nav navbar-nav navbar-right">
				<li<?php echo (!isset($menu) || $menu == 'home') ? ' class="active"' : ''; ?>>
					<a href="<?php echo base_url(''); ?>">
						<i class="icon-home"></i>
						<span><?php echo $this->l('Home'); ?></span>
					</a>	    				
				</li>
				
				<li class="dropdown<?php echo (isset($menu) && $menu == 'patients') ? ' active' : ''; ?>">					
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
						<i class="icon-wheelchair"></i>
						<span><?php echo $this->l('My Patients'); ?></span>
						<b class="caret"></b>
					</a>	    
				
					<ul class="dropdown-menu">
						<li<?php echo (isset($page_name) && $page_name == 'patients_list') ? ' class="active"' : ''; ?>><a tabindex="-1" href="<?php echo site_url('Doctor/Patient/'); ?>"><?php echo $this->l('Patients'); ?></a></li>
						<!--
                        <li<?php echo (isset($page_name) && $page_name == 'connected_patients') ? ' class="active"' : ''; ?>><a href="<?php echo site_url('Doctor/Patient/connectedPatients'); ?>"><?php echo $this->l('Connected Patients'); ?></a></li>
                        -->
						<li<?php echo (isset($page_name) && $page_name == 'consultations_list') ? ' class="active"' : ''; ?>><a href="<?php echo site_url('Doctor/Consultation/'); ?>"><?php echo $this->l('Consultations'); ?></a></li>
						<li<?php echo (isset($page_name) && $page_name == 'prescriptions_list') ? ' class="active"' : ''; ?>><a href="<?php echo site_url('Doctor/Prescription/'); ?>"><?php echo $this->l('Prescriptions'); ?></a></li>
					</ul> 				
				</li>
				
				<li class="dropdown<?php echo (isset($menu) && $menu == 'message') ? ' active' : ''; ?>">					
					<a href="<?php echo site_url('Doctor/Message/'); ?>">
						<i class="icon-envelope"></i>
						<span><?php echo $this->l('My Messages'); ?></span>
					</a>		
				</li>
                
				<li class="dropdown<?php echo (isset($menu) && $menu == 'myaccount') ? ' active' : ''; ?>">					
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
						<i class="icon-user"></i>
						<span><?php echo $this->l('My account'); ?></span>
						<b class="caret"></b>
					</a>	    
				
					<ul class="dropdown-menu">
						<li<?php echo (isset($page_name) && $page_name == 'profile') ? ' class="active"' : ''; ?>><a tabindex="-1" href="<?php echo site_url('User/MyAccount'); ?>"><?php echo $this->l('My profile'); ?></a></li>
						<li<?php echo (isset($page_name) && $page_name == 'update') ? ' class="active"' : ''; ?>><a tabindex="-1" href="<?php echo site_url('User/MyAccount/update'); ?>"><?php echo $this->l('Update my infos'); ?></a></li>
						<li<?php echo (isset($page_name) && $page_name == 'logout') ? ' class="active"' : ''; ?>><a href="<?php echo site_url('User/AccountService/signOut'); ?>"><?php echo $this->l('Logout'); ?></a></li>
					</ul> 				
				</li>
				
            </ul>
          </div><!-- /.navbar-collapse -->
        </div> <!-- /.container -->
    </nav>
    
    <div class="main">
    
        <div class="container">
        	<?php include(((BASEPATH == '/')?'':dirname(BASEPATH)).'/'.APPPATH.'views/Templates/flashMessage.php'); ?>
            
        
